<%- include header %>
<link rel="stylesheet" href="/stylesheets/user.css">

<div class="page course-detail" style="display: block;">
  <!-- 标题栏 -->
  <header class="bar bar-nav">
    <a class="icon icon-left pull-left back"></a>
    <h1 class="title"><%= title %></h1>
    <a class="icon icon-edit pull-right" href="/settings/<%= title %>"></a>
  </header>

  <div class="content">
    <div class="content-block J_lessonDetail">
      <img class="main-img" src="">
      
      <div class="detail">
        <h3><%= users.nickname %></h3>
        <p class="c-detail"><%= users.info %></p>
      </div>

      <div class="content-block-title">授课列表</div>
      <div class="list-block media-list">
        <ul>
          <% posts.forEach(function (post, index) { %> 
            <li>
              <a href="/u/<%= post.name %>/<%= post.time.day %>/<%= post.title %>" class="item-link item-content">
                <div class="item-media"><img class="list-img" src="/images/favicon.png"></div>
                <div class="item-inner">
                  <div class="item-title-row">
                    <div class="item-title"><%= post.title %></div>
                    <div class="item-after">
                      <%= post.tags %>
                    </div>
                  </div>
                  <div class="item-subtitle"><%= post.time.minute %></div>
                  <div class="item-text"><%- post.post %></div>
                </div>
              </a>
            </li>
          <% }) %>
        </ul>
      </div>
    </div>      
  </div>
</div>
<%- include footer %>

<script src="/javascripts/user.js"></script>